package com.labManage.dao;

import com.labManage.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RolePermitionDao {
    List<Long> selectPermitionByRoleId(Long roleId);

    int deletePermitionByRoleId(Long id);

    int updatePermitionByRoleId(@Param("role") Role role, @Param("permitionIdsList") List<Long> permitionIdsList);

    int insertRolePermition(@Param("insertRole")Role insertRole,@Param("permitionIdsList") List<Long> permitionIdsList);
}
